package com.cgc.venus.server.job.inter;

import com.cgc.venus.server.core.exception.VenusException;
import java.util.List;

/**
 * Created by 业哥 on 2017/11/20.
 */
public interface JobService {
    //new job
    public void addJob(String jobName,String jobClassName,String jobGroupName,String cronExpression,String desc)throws VenusException;
    //暂停 job
    public void pauseJob(String jobName,String jobGroupName)throws VenusException;
    //重启 job
    public void resumeJob(String jobName,String jobGroupName)throws VenusException;
    //重新设置 job
    public void rescheduleJob(String jobName,String jobGroupName,String cronExpression,String desc)throws VenusException;
    //删除job
    public void deleteJob(String jobName,String jobGroupName)throws VenusException;
    //查询job
    public List queryJob(String queryKey,String status)throws VenusException;
    //校验job key
    public Boolean checkExistsJobKey(String name,String group)throws VenusException;
    //校验class name
    public Boolean checkExistsClass(String className)throws VenusException;
    //校验CornExpression
    public Boolean checkExistsCornExpression(String cronExpression)throws VenusException;

}
